package com.yl.nettylearning.netty.rpc.provider;

import com.yl.nettylearning.netty.rpc.publicinterface.HelloService;

/**
 * @author yangl
 */
public class HelloServiceImpl implements HelloService {
    @Override
    public String Hello(String msg) {
        System.out.println("收到客户端消息：" + msg);
        //根据msg返回不同的接口
        if(null != msg){
            return "hello client，消息已经收到了。。。[" + msg +"]";
        }else{
            return "hello client，消息已经收到了。。。" ;
        }
    }
}
